package com.xxh.cloud.provider.entry;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("t_oss_log")//标记对应的数据库表名
public class OssLog {
    private Long id;
    private String bname;//存储空间名称
    private String objName;//对象名
    private String preUrl;//访问地址
    private Integer type; //1.图片 2.视频
    private Date ctime;
    private Date urlTime; //文件保存时间

    public OssLog(String bname, String objName, String preUrl, Integer type, Date ctime, Date urlTime) {
        this.bname = bname;
        this.objName = objName;
        this.preUrl = preUrl;
        this.type = type;
        this.ctime = ctime;
        this.urlTime = urlTime;
    }
}
